home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / cmdline.lha / cmdline / src / Makefile
Encoding:
Makefile  |  1992-08-03  |  1.2 KB  |  49 lines

  1. ##########################################################################
  2. ## ^FILE: Makefile - make file for the CmdLine product
  3. ##
  4. ## ^DESCRIPTION:
  5. ##    This is the makefile that is used to build and install the CmdLine
  6. ##    library and the cmdparse program.
  7. ##
  8. ## ^HISTORY:
  9. ##    04/28/92    Brad Appleton    <brad@ssd.csd.harris.com>    Created
  10. ###^^#####################################################################
  11.  
  12. include ../Config.mk
  13.  
  14. SUBDIRS = lib cmd 
  15. LIBDIRS = lib
  16. PROGDIRS = cmd
  17.  
  18. ###
  19. # target dependencies
  20. ###
  21. help:
  22.     @$(ECHO) "Usage: make <target>"
  23.     @$(ECHO) ""
  24.     @$(ECHO) "where <target> is one of the following:"
  25.     @$(ECHO) ""
  26.     @$(ECHO) "    all        -- build (but do not install) the product"
  27.     @$(ECHO) "    install    -- install CmdLine(3C++) and cmdparse(1)
  28.     @$(ECHO) "    library    -- build the cmdline library"
  29.     @$(ECHO) "    program    -- build the cmdparse program"
  30.     @$(ECHO) "    clean      -- remove all intermediate files"
  31.     @$(ECHO) "    clobber    -- remove all generated files"
  32.     @$(ECHO) ""
  33.  
  34. all install clean clobber:
  35.     for i in $(SUBDIRS) ; do \
  36.         ( $(CHDIR) $$i ; $(BUILD) $@ ) ; \
  37.     done
  38.  
  39. program:
  40.     for i in $(PROGDIRS) ; do \
  41.         ( $(CHDIR) $$i ; $(BUILD) $@ ) ; \
  42.     done
  43.  
  44. library:
  45.     for i in $(LIBDIRS) ; do \
  46.         ( $(CHDIR) $$i ; $(BUILD) $@ ) ; \
  47.     done
  48.  
  49.